﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using System.Data;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.IsPostBack)
        {
            DataDB dataDB = new DataDB();

            int contentID = Util.QueryStringHelper.GetQueryStringByInt("cntID");
            string contentName = Util.QueryStringHelper.GetQueryStringByString("cntName");

            DataRow contentDr = dataDB.IcerikGetir(contentID, contentName);
            if (contentDr != null)
            {
                ltHeader.Text = contentDr["Header"].ToString();
                ltContent.Text = contentDr["Cnt"].ToString();
            }
        }
    }
}